package com.travelzen._8.polymorphic.shapetest;


public class Shapes {
	
	private static RandomShapeGenerator gen = new RandomShapeGenerator();
	public static void main(String[] args) {
//		Random rand = new Random();
		Shape[] s = new Shape[9];
		for (int i = 0;i < s.length;i++) {
			s[i] = gen.next();
		}
		for (Shape shape : s) {
			shape.draw();
		}
//		for(int i = 0;i < 10;i++){
//			System.out.println(rand.nextInt(10));
//		}
	}
}
